package com.jqb.struts2lab01.action;

import com.jqb.struts2lab01.beans.Goods;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

public class AddGoodsAction extends ActionSupport {
	
	private static final long serialVersionUID = 1L;
	
	private Goods goods;
	
	@Override
	public String execute() throws Exception {
		ActionContext.getContext().put("msg", "add success...");
		return SUCCESS;
	}
	
	public Goods getGoods() {
		return goods;
	}

	public void setGoods(Goods goods) {
		this.goods = goods;
	}

}
